package com.yhb.channel.impl.BJCJ.http.Response;

import com.yhb.channel.impl.BJCJ.http.Response.base.BJCJBaseResponse;
import com.yhb.channel.impl.BJCJ.http.Response.data.WithdrawQueryResponseData;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
public class WithdrawQueryResponse extends BJCJBaseResponse {
    private WithdrawQueryResponseData data;

    public static final String PENDING_CODE = "1";
    public static final String SUCCESS_CODE = "2";
    public static final String FAIL_CODE = "3";

    public boolean orderStatusIsPending() {
        return PENDING_CODE.equals(this.data.getOrderStatus());
    }

    public boolean orderStatusIsSucceed() {
        return SUCCESS_CODE.equals(this.data.getOrderStatus());
    }

    public boolean orderStatusIsFailed() {
        return FAIL_CODE.equals(this.data.getOrderStatus());
    }
}
